package com.visionet.school.app.web.entity.vo;

import com.visionet.school.app.web.common.utilities.props.PropsKeys;
import com.visionet.school.app.web.common.utilities.props.PropsUtil;
import com.visionet.school.app.web.common.utils.Validator;

public class ImageVo {
	
	private Long id;
	private String name;
	private String type;
	private Integer width;
	private Integer height;
	private Integer commentCount;
	private Integer praiseCount;
	
	private String flag;
	
	private Long createId;
	private String createDate;
	
	private String minUrl;
	private String midUrl;
	private String maxUrl;
	private String remark;
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getHeight() {
		return height;
	}
	public void setHeight(Integer height) {
		this.height = height;
	}
	public Integer getCommentCount() {
		return commentCount;
	}
	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}
	public Integer getPraiseCount() {
		return praiseCount;
	}
	public void setPraiseCount(Integer praiseCount) {
		this.praiseCount = praiseCount;
	}
	public Long getCreateId() {
		return createId;
	}
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getMinUrl() {
		return minUrl;
	}
	public void setMinUrl(String minUrl) {
		this.minUrl = minUrl;
	}
	public String getMidUrl() {
		return midUrl;
	}
	public void setMidUrl(String midUrl) {
		this.midUrl = midUrl;
	}
	public String getMaxUrl() {
		return maxUrl;
	}
	public void setMaxUrl(String maxUrl) {
		this.maxUrl = maxUrl;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	public String getAbsoluteImagePath() {
		if(Validator.isNull(midUrl)){
			return "";
		}
		return PropsUtil.getProperty(PropsKeys.SERVICE_DOMAIN) + PropsUtil.getProperty(PropsKeys.UPLOAD_FILE_DOWNLOAD_PATH) + midUrl;
	}

}
